<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{../static/css/test.css}">
    <script type="text/javascript" th:src="@{../static/js/mobile.js}"></script>
</head>
<body>
    <h3>测试Thymeleaf</h3>
    <h3 th:text="'后台传输文本:' + ${session.msg} + '!!!' ">这是一个离线数据文本</h3>

    <tr th:each="user : ${session.users}">

        <p th:if="${user.getSex() == 1}">
            <th th:text="${user.realName}">真实姓名</th>
            <th th:text="${user['birthday']}">出生日期</th>
            <th th:text="${user.getAddress()}">地址</th>
        </p>
    </tr>

    <a th:href="@{/main}">这是一个样例超链接</a>

<!--    <tr th:object="${session.user}">-->
<!--        <th th:text="*${getRealName()}">真实姓名</th>-->
<!--        <th th:text="*${birthday}">出生日期</th>-->
<!--        <th th:text="*${address}">地址</th>-->
<!--    </tr>-->


</body>
</html>